//
//  BaseViewController.m
//  项目B 重构腕表
//
//  Created by dllo on 15/12/22.
//  Copyright © 2015年 GYD. All rights reserved.
//



#import "BaseViewController.h"




@interface BaseViewController ()

@end

@implementation BaseViewController

// 菊花开始
- (void)MBProgressHUDStart
{
    self.mbpHUD = [[MBProgressHUD alloc] initWithView:self.navigationController.view];
    [self.navigationController.view addSubview:self.mbpHUD];
    // 小矩形背景yanse透明度
    self.mbpHUD.color = [UIColor colorWithRed:255/255.0 green:150/255.0 blue:180/255.0 alpha:0.5];
    // 显示的文字
    self.mbpHUD.labelText = @"正在努力加载!!!";
    //    // 提示框样式
    //    self.mbpHUD.mode = MBProgressHUDModeDeterminateHorizontalBar;
    // 是否有遮罩
    self.mbpHUD.dimBackground = NO;
    self.mbpHUD.backgroundColor = [UIColor lightGrayColor];
    [self.mbpHUD show:YES];
    
}

// 菊花结束
-(void)MBProgressHUDStop
{
    [self.mbpHUD removeFromSuperview];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
